<?php

class categoryComponents extends sfComponents
{
	public function executeCategoriesMenu()
	{
		$this->categories=Doctrine_Core::getTable('Category')->createQuery("c")
							->where('c.published=1')
							->execute();
	}
}